from pyspark import SparkConf, SparkContext
# 创建SparkConf 类对象
conf = SparkConf().setMaster("local[*]").\
    setAppName("test_spark_app")
# 基于类对象创建SparkConftext类对象
